package Edchl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.MessageComponent;

public class EDC_HL7SegQRD extends MessageComponent{
	
	//Declarations
	public EDC_HL7FldTS QueryDateTime;
	public EDC_HL7FldST QueryFormatCode;
	public EDC_HL7FldST QueryPriority;
	public EDC_HL7FldST QueryID;
	public EDC_HL7FldST DeferredResponseType;
	public EDC_HL7FldTS DeferredResponseDateTime;
	public EDC_HL7FldCQ QuantityLimitedRequest;
	public EDC_HL7RepFldXCN WhoSubjectFilter;
	public EDC_HL7RepFldCE WhatSubjectFilter;
	public EDC_HL7RepFldCE WhatDepartmentDataCode;
	public EDC_HL7RepFldST WhatDataCodeValueQual;
	public EDC_HL7FldST QueryResultsLevel;
	
	//Constructor
	public EDC_HL7SegQRD(MessageElement elem) {
		super(elem);
		QueryDateTime = new EDC_HL7FldTS(elem.getElementAt("QueryDateTime"));
		QueryFormatCode = new EDC_HL7FldST(elem.getElementAt("QueryFormatCode"));
		QueryPriority = new EDC_HL7FldST(elem.getElementAt("QueryPriority"));
		QueryID = new EDC_HL7FldST(elem.getElementAt("QueryID"));
		DeferredResponseType = new EDC_HL7FldST(elem.getElementAt("DeferredResponseType"));
		DeferredResponseDateTime = new EDC_HL7FldTS(elem.getElementAt("DeferredResponseDateTime"));
		QuantityLimitedRequest = new EDC_HL7FldCQ(elem.getElementAt("QuantityLimitedRequest"));
		WhoSubjectFilter = new EDC_HL7RepFldXCN(elem.getElementAt("WhoSubjectFilter"));
		WhatSubjectFilter = new EDC_HL7RepFldCE(elem.getElementAt("WhatSubjectFilter"));
		WhatDepartmentDataCode = new EDC_HL7RepFldCE(elem.getElementAt("WhatDepartmentDataCode"));
		WhatDataCodeValueQual = new EDC_HL7RepFldST(elem.getElementAt("WhatDataCodeValueQual"));
		QueryResultsLevel = new EDC_HL7FldST(elem.getElementAt("QueryResultsLevel"));
	}

}
